<?php //thiet lap form action/?>
<p> * Indicates mandatory information</p>
<?php 
	//tao form
	echo $this->Form->create('Trainee', array('action'=>'register'));
	echo $javascript->link(array('views/trainees/register'));
?>
   	  <div class="leftbox">
    <h1>sign in information</h1>
       	  <div class="name">Username: * <span>(Use for sign in)</span></div>
          <? echo $this->Form->input('user', array('label' => false,	'class' => 'txt_input', 'after'=>$form->error('username_unique', 'This user name is taken. Please use a different user name')));?>
          <div class="name">Password: *</div>
          <? echo $this->Form->input('pass', array('type' => 'password', 'label' => false,	'class' => 'txt_input', 'id' => 'txtpw'));?>
		  <div class="name">Re-type Password: *</div>
          <? echo $this->Form->input('pass1', array('type' => 'password', 'label' => false,	'class' => 'txt_input', 'id' => 'txtpw1'));?>
		  <div id="errormsg"></div>
          <div class="col14">
          <div class="name">Title: </div>
		  <? echo $this->Form->input('title', array('type'=>'select', 'options' => array('Mr', 'Ms', 'Mrs', 'Dr', 'Prof'), 'class'=>'lst_choice14', 'label' => false, 'empty' => 'Click one...')); ?>     
          </div>
        <div class="col142">
          <div class="name">Gender: *</div>
		  <? echo $this->Form->input('gender', array('type'=>'select', 'options' => array('0'=>'Male', '1'=>'Female'), 'class'=>'lst_choice14', 'label' => false, 'empty' => 'Click one...')); ?>          
          </div>
          <div id="clearone"></div>
          <div class="name">First name: *</div>

		  <?
		  echo $this->Form->input(
							'firstname',
							array(
								'label' => false,								
								'class' => 'txt_input'
							)
						);
			?>
          <div class="name">Middle name:</div>
          <? echo $this->Form->input('middlename', array('label' => false,	'class' => 'txt_input'));?>
          <div class="name">Last name: *</div>
          <? echo $this->Form->input('lastname', array('label' => false,	'class' => 'txt_input'));?>
        </div><!--endleftbox-->
     		
      	<div class="rightbox">
          <h1>contact information </h1>
  		  	<div class="name">Email address: * <span>(Activation link will be sent through this email)</span></div>
              	<? echo $this->Form->input('email', array('label' => false,	'class' => 'txt_input', 'after'=>$form->error('email_unique', 'This email is taken. Please use a different value')));?>
              
              <div class="name">Address Type: *</div>
              <? echo $this->Form->input('addtyp', array('type'=>'select', 'options' => array('0' => 'Home', '1' => 'Office'), 'class'=>'lst_choice14', 'label' => false, 'empty' => 'Click one...')); ?>
            
            <div class="name">Address: *</div>
            <? echo $this->Form->input('address', array('label' => false,	'class' => 'txt_input'));?>
            
<div class="col14">
                  <div class="name">Country: *</div>
                  <? 
						echo $this->Form->input(
							'country_id',
							array(
				
								'label' => false,								
								'class' => 'lst_choice14',
								'id' => 'ddlcountry'
							)
						);
					?> 
              </div>
<div class="col142">
                <div class="name">City: *</div>
				  <div id="cities">
				  <?
					echo $this->Form->input(
						'city_id',
						array(					
							'empty' => '-- Select city --',
							'label' => false,
							'class' => 'lst_choice14',
							'id' => 'ddlcity'
						)
					);
					?>
					</div>         
              </div>
             
          <div class="col14">
          <div class="name">Phone Type: *</div>
          <? echo $this->Form->input('phonetyp', array('type'=>'select', 'options' => array('0' => 'Home', '1' => 'Office', '2' => 'Mobile'), 'class'=>'lst_choice14', 'label' => false, 'empty' => 'Click one...')); ?>
          </div>
          <div class="col142">
          <div class="name">Phone number: *</div>
          <? echo $this->Form->input('phone', array('label' => false,	'class' => 'txt_input14'));?>  
          </div>
          <div id="clearone"></div>         
          <div id="clearone"></div>
      	</div><!--endrightbox-->
        
        
    	<div id="clearone"></div>
         <div class="name"><? echo $this->Form->input('condition', array('hiddenField' => true, 'label' => '   I accept the Terms & Conditions and agree that I have read the Rules & Regulations mentioned on the site.',	'type' => 'checkbox'));?> </div>
    	<div class="nav_btn">
            <a href="#" class="rightbtn"><? echo $this->Form->end('Submit');?></a>
            <a href="#" class="leftbtn"><input name="" type="reset" value="Reset" /></a>
            <div id="clearone"></div>
        </div>
 <?
	//echo $error;
	//echo $this->Form->end();
?>